﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;

namespace AOP.ConsoleTest 
{
    /// <summary>
    /// 
    /// </summary>
    public class UserService : IUserService
    {

        /// <summary>
        /// 
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public string Register(UserInfo user)
        {
            var result = JsonSerializer.Serialize(user);
            Console.WriteLine($"注册用户：{result}！！！");
            return result;

        }

    }
}
